// stores/user.js
import { defineStore } from 'pinia';

export const useUserStore = defineStore({
  id: 'user',
  state: () => ({
    isLoggedIn: false,
    username: '',
    userId: '',
    token: ''
  }),
  getters: {
    getUserName: (state) => state.username,
    getUserId: (state) => state.userId,
    getToken: (state) => state.token
  }
});